﻿using Microsoft.SharePoint.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SPCoder.Utils.Nodes
{
    public class SiteNode : BaseNode
    {
        public SiteNode(Site site)
        {
            site.Context.Load(site.RootWeb);
            site.Context.ExecuteQuery();
            base.Title = site.RootWeb.Title;
            base.SPObjectType = site.GetType().Name;
            base.Url = site.Url;
            base.IconPath = "";
            base.ParentNode = null;
        }
    }
}
